package io.wins.vertx.service;

import io.vertx.core.AsyncResult;
import io.vertx.core.Handler;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;

public class CodelistService extends BaseService {

    public CodelistService(final Vertx vertx) {
        this.vertx = vertx;
    }

    public void initCodeList(final Handler<AsyncResult<JsonArray>> done) {
        final JsonObject sqlMsg = new JsonObject()
            .put("sql", "select * from ds_codelist");
        this.querySql(sqlMsg, done);
    }
}
